# coding:utf-8

from fralog.FraLog import getFileLog

log = getFileLog()


class FraException(Exception):
    def __init__(self, msg):
        super(FraException,self).__init__()
        self.msg = 'Fra Exception Occured: %s'%msg

    def __str__(self):
        log.error(self.msg)
        return repr(self.msg)


if __name__ == '__main__':
    try:
        raise FraException('hahahaha')
    except Exception as e:
        print(e)